<script type="text/javascript">
    alert('<!--{$Message}-->');
    window.location="<!--{Route->GenerateURI Arguments='Controller:login'}-->";
</script>